home *** CD-ROM | disk | FTP | other *** search
/ New Masters of Flash / New Masters of Flash.iso / pc / MOVIES / 08_2.dir / 00156_Text_text033.txt < prev    next >
Text File  |  2000-09-30  |  837b  |  25 lines

  1. The core scripting for the drop detection occurs in the same button from the previous step. 
  2.  
  3. In the on (release, releaseOutside) { mouse event choose Set Variable from the actions list.
  4.  
  5. In the Variable: box on the right type:
  6.  
  7. ../../:debug
  8.  
  9. To set the value of this variable, click on the Value: field of the set variable. Then under the Functions set of actions, select the getProperty action.
  10. You will now see:
  11.  
  12. getProperty ( target, property );
  13.  
  14. We need to replace the text that says target and property with the correct values. The target is the dummy icon clip so we replace the word target with:
  15.  
  16. ../../icon
  17.  
  18. Next we need to get the _droptarget property of this clip, so we replace the word property with:
  19.  
  20. _droptarget
  21.  
  22. The final line should look like this:
  23.  
  24. GetProperty ( ΓÇ£../../iconΓÇ¥, _droptarget )
  25.